import request from '@/utils/request'

// 查询旅行社列表
export function listLvxingshe(query) {
  return request({
    url: '/ziliao/lvxingshe/list',
    method: 'get',
    params: query
  })
}

// 查询旅行社详细
export function getLvxingshe(id) {
  return request({
    url: '/ziliao/lvxingshe/' + id,
    method: 'get'
  })
}

// 新增旅行社
export function addLvxingshe(data) {
  return request({
    url: '/ziliao/lvxingshe',
    method: 'post',
    data: data
  })
}

// 修改旅行社
export function updateLvxingshe(data) {
  return request({
    url: '/ziliao/lvxingshe',
    method: 'put',
    data: data
  })
}

// 删除旅行社
export function delLvxingshe(id) {
  return request({
    url: '/ziliao/lvxingshe/' + id,
    method: 'delete'
  })
}
